<!-- 登录页 -->
<template>
	<view>
		<home :clickColorIndex="0"></home>
		<carousel></carousel>
		<list></list>
		<news></news>
		<guarantee></guarantee>
		<footing></footing>
		<menu-tool></menu-tool>
	</view>
</template>

<script>
var db = uniCloud.database();
export default {
	data() {
		return {
			settingsIconSrc: '/static/settings.png', // 设置图标路径，需替换为实际路径
			pageIndex: 0 ,// 默认首页
		};
	},
	created(){
		//this.removeData();
	},
	methods: {
		// removeData(){
		// 	db.collection('cart').remove().then(res=>{
		// 		console.log('删除结果',res);
		// 	}).catch(err=>{
		// 		console.log('删除失败',err);
		// 	});
		// },
		goToSettings() {
			uni.navigateTo({
				url: '/pages/settings/settings'
			});
		},
		
		navigationFun(val) {
			this.pageIndex = val.id;
		}
	}
};
</script>

<style>
</style>
